import httpInstance from "@/utils/axios.js";

//获取当前用户信息
export function getUserInfo() {
    return httpInstance.get('/getCurrentUser')
}

//获取用户信息
export function getUser(data){
    return httpInstance.post('/user/getUserByCondition',data)
}

//新增用户
export function addUser(data){
    return httpInstance.post('/user/addUser',data)
}

//修改用户
export function updateUser(data){
    return httpInstance.put('/user/updateUser',data)
}

//删除用户
export function deleteUser(data){
    return httpInstance.delete('/user/deleteUser',data)
}
